package com.tang.dubbo;

import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

@Service("demoService")
public class DemoServiceImpl implements IDemoService{
    @Override
    public String sayHello(String name) {
        return "Hello, " + name;
    }

    @Override
    public List<String> random() {
        List<String> list = new ArrayList<>();
        Random random = new Random();
        list.add(random.nextInt() + "-tzf");
        list.add(random.nextInt() + "-tzf");
        list.add(random.nextInt() + "-tzf");
        list.add(random.nextInt() + "-tzf");
        return list;
    }
}
